/**
 * 服务基类
 *
 * @export
 * @class Service
 */
export default class Service {

    /**
     * Vue 状态管理器
     *
     * @private
     * @type {(any | null)}
     * @memberof Service
     */
    private $store: any | null = null;

    /**
     * Creates an instance of Service.
     * 
     * @param {*} [opts={}]
     * @memberof Service
     */
    constructor(opts: any = {}) {
        this.$store = opts.$store;
    }

    /**
     * 获取状态管理器
     *
     * @returns {(any | null)}
     * @memberof Service
     */
    public getStore(): any | null {
        return this.$store;
    }
}